<?php
include("function.php");
$filename = $_SERVER['REQUEST_URI'];
$array =  explode('/',$filename);
if($array[1] == 'en'){
	$file = "en/".$array[2].".php"; 
	$class = "en/".$array[2].".class.php"; 
	$host = 'http://'.$_SERVER['HTTP_HOST'].'/en'; 
	for($n=3;$n < count($array) ; $n++){
		$pram[$n-3] = $array[$n];
	}
}else{
	$file = "content/".$array[1].".php"; 
	$class = "content/".$array[1].".class.php";
	$host = 'http://'.$_SERVER['HTTP_HOST']; 
	for($n=2;$n < count($array) ; $n++){
		$pram[$n-2] = $array[$n];
	}
}

if(file_exists($file)){
	include($class);
	include($file);
}else{
	include("content/home.class.php");
	include("content/home.php");
}
?>